示例#1
0
 public LocatorImpl(ILocator locator)
 {
     publicId     = locator.PublicId;
     systemId     = locator.SystemId;
     lineNumber   = locator.LineNumber;
     columnNumber = locator.ColumnNumber;
     xmlVersion   = locator.XmlVersion;
     encoding     = locator.Encoding;
     entityType   = locator.EntityType;
 }
        public void TestValidAgentType(string v, ParsedEntityType expected)
        {
            var          ap            = new EntityTypeAttributeParser();
            const string attIdentifier = "type";

            var e = ap.ParsedAttribute(attIdentifier,
                                       null,
                                       new NParsedAttributeAtomic(new IdentifierExpression(v)));

            Assert.IsInstanceOf(typeof(ParsedEntityTypeAttribute), e);
            var at = (ParsedEntityTypeAttribute)e;

            Assert.AreEqual(expected, at.Value);
        }
示例#3
0
 public ParsedEntity(string identifier) : base(identifier)
 {
     EntityType = ParsedEntityType.None;
 }